package zhh.tangbao.wechat.pojo;

import lombok.Data;

/**
 * <p>
 * 用户购物车
 * 直接采用缓存，不需要存入数据库
 * 记录购物车内有什么种类的商品即可，不记录数量
 * </p>
 *
 * @author 粥灰灰
 * <p>2023/5/1</p>
 */

@Data
public class CartItem {

    private String commodityEntityId;

    private String machineId;

    private Integer stockId;

    public CartItem() {
    }

    public CartItem(String commodityEntityId, String machineId, Integer stockId) {
        this.commodityEntityId = commodityEntityId;
        this.machineId = machineId;
        this.stockId = stockId;
    }
}
